import fetch from './util/fetch';

/*获取账户信息*/
export function getInfo(data)
{
  return fetch({
    url: 'merchant/',
    method: 'get',
    params: data,
  });
}

/*获取地址列表*/
export function getContacts(data)
{
  return fetch({
    url: 'merchant/contact/',
    method: 'get',
    params: data,
  });
}

/*添加地址*/
export function insertContact(data)
{
  return fetch({
    url: 'merchant/contact/',
    method: 'post',
    data: data,
  });
}

/*修改地址*/
export function modifyContact(data)
{
  return fetch({
    url: 'merchant/contact/',
    method: 'put',
    data: data,
  });
}

/*修改密码*/
export function modifyPwd(data)
{
  return fetch({
    url: 'merchant/updatePwd',
    method: 'patch',
    data:data,
  });
}

/*修改店铺信息*/
export function modifyStoreInfo(data)
{
  return fetch({
    url: 'merchant',
    method: 'patch',
    data:data,
  });
}